﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Opposite : Person
    {
        public string name { get; set; }
        public static string a { get; set; }
        public Opposite(string name)
        {
            this.name = name;
            Name = name;
        }
        public static int Test01()
        {
            Random ran = new Random();
            int key = ran.Next(3) + 1;
            switch (key)
            {
                case 1:
                    a = "剪刀";
                    break;
                case 2:
                    a = "石头";
                    break;
                case 3:
                    a = "布";
                    break;
                default:
                    break;
            }
            return key;
        }
        public override void Test()
        {
            Console.WriteLine("{0}：出拳：{1}", name, a);
        }
    }
}
